{include file="public/header" /}</head>
<body class="layui-anim">
<div class="x-nav layui-row">
	<span class="layui-breadcrumb layui-col-md9 layui-col-sm9">
		<a href="javascript:;">首页</a>
		{if $_page_navi.0}<a href="javascript:;">{$_page_navi.0.NavName}</a>{/if}
		{if $_page_navi.1}<a><cite>{$_page_navi.1.NavName}</cite></a>{/if}
	</span>
	<a class="layui-btn layui-btn-small" style="float:right" href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon">&#xe9aa;</i></a>
</div>
<div class="x-body">
	<blockquote class="layui-elem-quote layui-clear " style="padding: 5px;line-height: 38px;">
		<span style="font-size: 16px;"><i class="layui-icon">&#xe653;</i>&nbsp;{$_page_navi.1.NavName}</span>
		<form class="layui-form layui-col-md8 x-so layui-form-pane x-right" style="margin: 0;text-align: right;">
			<input class="layui-input" placeholder="会员编号" name="Code" value="{$Request.param.Code}"/>
			<input class="layui-input date_range" placeholder="选择日期" name="start" value="{$Request.param.start}" style="width: 20%"/>
			<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
			{if $Request.param.Code || $Request.param.start }
			<a href="{:url('account/integral_list')}" class="layui-btn layui-bg-blue" >撤销搜索</a>
			{/if}
		</form>
	</blockquote>
	<xblock>
		<!--<button class="layui-btn layui-btn-danger stateAll" data-value="true" data-confirm="确认要删除吗？" url="{:URL(request()->controller().'/state',['key'=>'is_del'])}"><i class="layui-icon"></i>批量删除</button>
		<a class="layui-btn" target="_blank" href="{:URL(request()->controller().'/export',$Request.param)}"><i class="layui-icon layui-icon-download-circle"></i>Excel</a>
		<button class="layui-btn" onclick="zhiju_show('添加','{:URL(request()->controller().'/add')}',1024,650)"><i class="layui-icon">&#xe61f;</i>添加</button>-->
        <a class="layui-btn layui-btn-danger" onclick="release_principal()">销售奖励钱包释放</a>

		<span class="x-right" style="line-height:40px">共有数据：{$list->total()} 条</span>
	</xblock>
<!--	奖金类别，便于统计0没有1推荐奖2领导奖3服务费4感恩奖5潮汐奖6分享奖7业绩奖8通证9抢红包10消费将11促销分润-->
	<table class="layui-table layui-form">
		<thead>
		<tr>
			<th></th>
			<th>会员编号</th>
			<th>用户名</th>
			<th>日期</th>
			<th>平级奖</th>
			<th>分享奖励</th>
			<!-- <th>释放比例</th> -->
			<!-- <th>释放比例</th> -->
		</tr>
		</thead>
		<tbody>
		{volist name="list" id="v"}
		<tr class="data_line" data_id="{$v.id}">
			<td>{$v.id}</td>
			<td>{$v.code}</td>
			<td>{$v.nickname}</td>
			<td>{$v.create_date}</td>
			<td>{$v.sum1}</td>
			<td>{$v.sum2}</td>
			<!-- <td>{$v.rate}</td> -->
			<!-- <td>{$v.sum-$v.over}</td> -->
		</tr>
		{/volist}
		</tbody>
		
	</table>
	<div class="page"><div>{$list->render()}</div></div>
</div>
</body>
<script type="text/javascript">
	function release_principal() {
        layer.confirm('确定要释放吗，仅限测试使用？', function (index) {
            layer.load(2);
            $.get(
                "{:URL('Member/release_principal')}",
                function (data) {
                    layer.closeAll();
                    layer.msg(data.msg, {time: 1000},function () {
                        location.reload();
                    });
                }
            );
        });
    }


</script>
</html>